import Types from 'prop-types'

import styles from './index.module.scss'

import Icon from '../Icon'

const NavBar = ({ onClick }) => {
  return (
    <div className={styles.root}>
      <span onClick={onClick}>
        <Icon type="iconfanhui" />
      </span>
    </div>
  )
}

NavBar.propTypes = {
  onClick: Types.func
}

export default NavBar